Kubernetes in Action, Second Edition MEAP V15 by copyright-2023-manning-publications.html

Kubernetes in Action, Second Edition MEAP V15 by copyright-2023-manning-publications.html

Author:copyright-2023-manning-publications.html
Language: eng
Format: epub


To project the TLS certificate and private key into the envoy container of the kiada-ssl pod, you need to define a new volume and a new volumeMount, as shown in the next listing, which contains the important parts of the pod.kiada-ssl.secret-volume.yaml file.

Listing 9.17 Using a secret volume in a pod

apiVersion: v1 kind: Pod metadata: name: kiada-ssl spec: volumes: - name: cert-and-key #A secret: #A secretName: kiada-tls #A items: #B - key: tls.crt #B path: example-com.crt #B - key: tls.key #B path: example-com.key #B mode: 0600 #C ... containers: - name: kiada ... - name: envoy image: envoyproxy/envoy:v1.14.1 volumeMounts: #D - name: cert-and-key #D mountPath: /etc/certs #D readOnly: true #D ... ports: ...



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.